<template>
  <slot :dict-data :loading :row-data="form" :row-index="index" />
</template>

<script setup lang="ts">
import type { NvCrudFieldOption } from '@/crud/types'
import type { RowData } from '@/types'
import { useDict } from '@/utils/use-dict'

interface Props {
  form: RowData
  index: number
  field: string
  option: NvCrudFieldOption
}
const props = defineProps<Props>()
const { dictData, loading } = useDict(props)
</script>
